package com.maserb.monitor.enums;

public enum RoleEnum {
    USER(1, "普通用户"), ADMIN(2, "超级管理员");

    private int value;
    private String name;

    RoleEnum(int value, String name) {
        this.value = value;
        this.name = name;
    }

    public int getValue() {
        return value;
    }

    public String getName() {
        return name;
    }

    public boolean equals(RoleEnum item) {
        return this.getValue() == item.getValue() && this.getName().equals(item.getValue());
    }
}
